close a loophole

Translations
combler une faille
Definitions
To take action to eliminate a gap or ambiguity in a law, regulation, or policy that allows for unintended or undesirable outcomes, often to prevent exploitation or misuse.